<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    function Star(uname,age){
       this.uname=uname
       this.age=age
    }
   const lzs=new Star("李钟硕",33)
   const lze=new Star("李知恩",30)
   console.log(Star.prototype);
  //  function fn(){
  //  }
  //  console.log(fn.prototype);
  Star.prototype.sing=function(){
      console.log("唱歌")
  }
  lzs.sing()
  lze.sing()
  console.log(lzs.sing===lze.sing);
  </script>
</body>
</html>